package com.baizhi.app.appcontroller;

import com.baizhi.app.appservice.CmfzBannerAppService;
import com.baizhi.entity.CmfzBanner;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("app/banner")
public class CmfzBannerAppController {
    @Autowired
    private CmfzBannerAppService cmfzBannerAppService;
    @GetMapping("selectBanner")
    @ResponseBody
    public List<CmfzBanner> selectBanner(){
        List<CmfzBanner> cmfzBanners = cmfzBannerAppService.selectBanner();
        return cmfzBanners;
    }
}
